function fun(){
    cmd.prompt("进入起号脚本");
    if(_args.get("master") == 0){
        return;
    }
    cmd.acceptMission("世界村村长","初入世界 1");
    cmd.finishMission("初入世界 1");
    cmd.acceptMission("云裳","初入世界 2");
    cmd.finishMission("初入世界 2");
    cmd.acceptMission("云裳","初入世界 3");
    cmd.finishMission("初入世界 3");
    cmd.acceptMission("东海","初入世界 4");
    cmd.killMonster([{name:"哈士奇", count:1}]);
    cmd.finishMission("初入世界 4");
    cmd.acceptMission("东海","初入世界 5");
    cmd.finishMission("初入世界 5");
    cmd.acceptMission("小悦","初入世界 6");
    cmd.killMonster([{name:"小偷", count:1}]);
    cmd.finishMission("初入世界 6");
    cmd.acceptMission("小悦","初入世界 7");
    cmd.finishMission("初入世界 7");
    cmd.acceptMission("悲剧哥","初入世界 8");
    cmd.finishMission("初入世界 8");
    cmd.acceptMission("井","井水");
    cmd.finishMission("井水");
    cmd.acceptMission("世界村村长","初入世界 9");
    cmd.finishMission("初入世界 9");
    cmd.acceptMission("轩姐","进入世界");
    cmd.finishMission("进入世界");
    cmd.jumpMap("世界之门西方");
    cmd.acceptMission("雷恩长老","神选之人");
    cmd.finishMission("神选之人");
    cmd.acceptMission("雷恩长老","击退邪灵教徒");
    cmd.finishMission("击退邪灵教徒");
    cmd.acceptMission("狂战士珍尼","珍尼式战术！");
    cmd.killMonster([{name:"邪灵教徒杂兵", count:4}]);
    cmd.finishMission("珍尼式战术！");
    cmd.acceptMission("狂战士珍尼","乘胜追击！");
    cmd.killMonster([{name:"小恶魔", count:5}]);
    cmd.finishMission("乘胜追击！");
    cmd.acceptMission("狂战士珍尼","收集小恶魔之爪");
    cmd.killMonsterWithItem(["小恶魔"],"小恶魔之爪",5);//2
    cmd.finishMission("收集小恶魔之爪");
    cmd.acceptMission("狂战士珍尼","集合兵力");
    cmd.acceptMission("战士军哥","解救战士军哥");
    cmd.finishMission("解救战士军哥");
    cmd.finishMission("集合兵力");
    cmd.acceptMission("狂战士珍尼","击杀击败");
    cmd.npcBattle("邪灵屠夫","追上去剁了他!!");
    cmd.finishMission("击杀击败");
    cmd.acceptMission("雷恩长老","大地的腐化");
    cmd.finishMission("大地的腐化");
    cmd.acceptMission("雷恩长老","前往风之森林");
    cmd.jumpMap("风之森林");
    cmd.finishMission("前往风之森林");
    cmd.acceptMission("丛林守卫","腐化的森林");
    cmd.finishMission("腐化的森林");
    cmd.acceptMission("丛林守卫","消灭腐化的生物");
    cmd.killMonster([{name:"腐化猎豹",count:3},{name:"腐化野狼",count:3}]);
    cmd.finishMission("消灭腐化的生物");
    cmd.acceptMission("丛林守卫","侦察任务");
    cmd.finishMission("侦察任务");
    cmd.acceptMission("自然祭司","寻找治疗腐化的方法");
    cmd.killMonsterWithItem(["腐化野狼"],"未腐坏的毛皮",5);
    cmd.killMonsterWithItem(["猎豹"],"腐坏的毛皮",3);
    cmd.finishMission("寻找治疗腐化的方法");
    cmd.acceptMission("怒风守卫利昂","亡者移动");
    cmd.killMonster([{name:"行尸", count:18}]);
    cmd.finishMission("亡者移动");
    cmd.acceptMission("怒风守卫利昂","消灭亡者");
    cmd.killMonster([{name:"行尸", count:18}]);
    cmd.finishMission("消灭亡者");
    cmd.acceptMission("怒风守卫利昂","幕后黑手");
    cmd.finishMission("幕后黑手");
    cmd.acceptMission("怒风守卫利昂","邪恶之人!");
    cmd.acceptMission("","亡者复活");
    cmd.killMonster([{name:"丛林守卫的尸体", count:1}]);
    cmd.finishMission("亡者复活");
    cmd.acceptMission("","击败邪灵腐化术师");
    cmd.killMonster([{name:"邪灵腐化术师(BOSS)", count:1}]);
    cmd.finishMission("击败邪灵腐化术师");
    cmd.finishMission("邪恶之人!");
    cmd.acceptMission("怒风守卫利昂","前往亡者之地");
    cmd.jumpMap("亡者之地");
    cmd.finishMission("前往亡者之地");
    cmd.acceptMission("怒风族长老","腐化的源头");
    cmd.finishMission("腐化的源头");
    cmd.acceptMission("怒风族长老","防守工作");
    cmd.acceptMission("医疗分队长-雪莉","医疗药品短缺")
    cmd.killMonsterWithItem(["腐化尸","骸骨战士"],"防腐化药剂",5)
    cmd.acceptMission("防守分队长-尼木","防守准备工作");
    cmd.finishMission("医疗药品短缺");
    cmd.killMonster([{name:"腐化尸",count:8},{name:"骸骨战士",count:8}]);//可优化
    cmd.finishMission("防守准备工作");
    cmd.acceptMission("特攻队长-史刚","（精英任务）反击准备工作");
    cmd.killMonster([{name:"邪灵屠虐者", count:3}]);
    cmd.finishMission("（精英任务）反击准备工作");
    cmd.finishMission("防守工作");
    cmd.acceptMission("怒风族长老","反击行动");
    cmd.jumpMap("恐惧山谷");
    cmd.finishMission("反击行动");
    cmd.acceptMission("特攻队长-史刚","最后的突击!");
    cmd.killMonster([{name:"恐惧骸骨战士", count:20}]);
    cmd.finishMission("最后的突击!");
    cmd.acceptMission("丛林守卫-水雅","意想不到的援助");
    cmd.killMonster([{name:"恐惧行尸", count:20}]);
    cmd.finishMission("意想不到的援助");
    cmd.acceptMission("狂战士珍尼","珍尼突击！");
    cmd.killMonster([{name:"邪灵刺客", count:20}]);
    cmd.finishMission("珍尼突击！");
    cmd.acceptMission("狂战士珍尼","[精英任务击败恐惧食人魔统领");
    cmd.npcBattle("","攻击恐惧食人魔统领");
    cmd.finishMission("[精英任务击败恐惧食人魔统领");
    cmd.acceptMission("狂战士珍尼","进入邪灵圣堂");
    cmd.jumpMap("邪灵圣殿");
    cmd.finishMission("进入邪灵圣堂")
    cmd.acceptMission("狂战士珍尼","突如其来的消息");
    cmd.finishMission("突如其来的消息");
    cmd.acceptMission("邪灵教主","失去希望!");
    cmd.finishMission("失去希望!");
    cmd.acceptMission("丛林守卫-水雅","战略反击");
    cmd.killMonster([{name:"邪灵使者",count:8},{name:"邪灵刺客",count:5},{name:"邪灵屠虐者",count:1}]);
    cmd.finishMission("战略反击");
    cmd.acceptMission("狂战士珍尼","追击邪灵教主");
    cmd.killMonster([{name:"邪灵使者",count:8},{name:"邪灵刺客",count:8},{name:"邪灵屠虐者",count:2}]);
    cmd.finishMission("追击邪灵教主");
    cmd.acceptMission("丛林守卫-水雅","破坏邪灵法阵");
    cmd.acceptMission("","破坏右方邪灵法阵");
    cmd.killMonster([{name:"法阵守卫者", count:1}]);
    cmd.finishMission("破坏右方邪灵法阵");
    cmd.acceptMission("","破坏左方邪灵法阵");
    cmd.killMonster([{name:"法阵守卫者", count:1}]);
    cmd.finishMission("破坏左方邪灵法阵");
    cmd.finishMission("破坏邪灵法阵");
    cmd.acceptMission("丛林守卫-水雅","[精英任务]决战!");

    // // // // // TODO  更换好的装备
    var count = 0;
    do{
        cmd.abandonMission("击败邪灵教主");
        cmd.acceptMission("邪灵教主","击败邪灵教主");
        count++;
    }while(cmd.player().getLevel() < 21 && count < 50)


    cmd.learnSkill("宠物训练师", "迅捷宠物技能训练","精确打击", 2);
    cmd.learnSkill("宠物训练师", "迅捷宠物技能训练","尖牙利爪", 1);
    cmd.learnSkill("宠物训练师", "睿智宠物技能训练","法力恢复", 10);
    cmd.learnSkill("宠物训练师", "勇猛宠物技能训练","协助防御劈砍攻击", 4);

    // cmd.fastBattle();
    // while(cmd.player().getLevel() < 21){
    //    cmd.acceptMission("邪灵教主","击败邪灵教主");
    //    cmd.abandonMission("击败邪灵教主");
    // }
    // cmd.safeBattle();

    cmd.finishMission("击败邪灵教主");
    cmd.finishMission("[精英任务]决战!");
    cmd.acceptMission("长老","英雄的诞生!");
    cmd.finishMission("英雄的诞生!");

    cmd.acceptMission("长老","获得新的城市");
    cmd.finishMission("获得新的城市");
    cmd.toCity();//进入自己的城市
    cmd.repairEquip()
    cmd.jumpMap("太阳之城");
    cmd.specialCode("85ri8zcztd");
    cmd.pollMail();
    cmd.useConsumableItem("人物经验卷(30000）");
    cmd.useConsumableItem("人物经验卷(30000）");
    cmd.useConsumableItem("人物经验卷(30000）");
    cmd.pollMail();
    if(cmd.onLineDraw("新手大礼包")){
        cmd.useConsumableItem("新手大礼包");
    }
    cmd.useConsumableItem("人物经验卷(30000）");
    cmd.useConsumableItem("人物经验卷(30000）");
    cmd.repairEquip()   

    cmd.sellRquip(2); 
    cmd.learnSkill("人物技能训练师", "侠客","纯阳无极功", 4);
    cmd.learnSkill("人物技能训练师", "法师","魔法回路", 4);
    cmd.learnSkill("人物技能训练师", "战士","先制攻击", 1);
    cmd.learnSkill("人物技能训练师", "修真","水疗术", 4);
}
fun();







// cmd.alert("完毕1");